package com.ravi.common.utils.auto;

import org.apache.commons.lang3.RandomStringUtils;

import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.Date;

public class CheckupNoUtil {
	public static BigInteger generateCheckupNo() {
		SimpleDateFormat tempDate = new SimpleDateFormat("yyyyMMdd");
		String today = tempDate.format(new Date());
		String random = RandomStringUtils.randomNumeric(5);
		String checkupNoString = today + random;
		return new BigInteger(checkupNoString);
	}
}
